package com.epoint.service.jdbc;



import org.testng.annotations.Test;

import java.util.List;


public class testJdbc {


    @Test
    public void   Testjdbc(){
        List<People> lst = CommonDao.getInstance().findList("select * from people", People.class);
        for (People item : lst) {
            System.out.println(item.getId() + "  " + item.getName() + "  " + item.getAge());
        }
        People people=CommonDao.getInstance().find("select * from people where name='王超'", People.class);

        System.out.println(people.getAge());

    }

}
